package com.coda.service;

import com.coda.common.PageResult;
import com.coda.dto.PageDto;
import com.coda.entity.Purchase;
import org.springframework.web.bind.annotation.RequestBody;

public interface PurchaseService {
    /**
     * 添加采购单
     * @param purchase
     */
    void addPurchase(Purchase purchase);

    /**
     * 分页查询采购单信息
     * @return
     */
    PageResult getPurchasePage(PageDto pageDto, Purchase purchase);

    /**
     * 根据id删除采购单
     * @param id
     */
    void deletePurchase(Long id);

    /**
     * 根据id修改采购单
     * @param purchase
     */
    void updatePurchase(Purchase purchase);
}
